package be.jprojects.subscription.gui;

import java.awt.Color;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import be.jprojects.subscription.gui.i18n.TranslatableMenu;

public class SubscriptionMenuBar extends JMenuBar {
	public SubscriptionMenuBar() {
		super.setBackground(Color.GRAY);
		super.setForeground(Color.BLACK);
		super.setOpaque(true);
		JMenu menu = new TranslatableMenu();
		menu.setText("File");
	
		JMenuItem[] menuItems = new JMenuItem[6];
		menuItems[0] = new JMenuItem();
		menuItems[0].setText("New ...");
		
		menuItems[1] = new JMenuItem();
		menuItems[1].setText("Open ...");
		
		menuItems[2] = new JMenuItem();
		menuItems[2].setText("Save");
		
		menuItems[3] = new JMenuItem();
		menuItems[3].setText("Export  ...");
		
		menuItems[4] = new JMenuItem();
		menuItems[4].setText("Print ...");
		
		menuItems[5] = new JMenuItem();
		menuItems[5].setText("Close ...");
		
		for (JMenuItem menuItem: menuItems)
			menu.add(menuItem);
		
		super.add(menu);
		
	}
}
